package com.xyhy.core.base.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("核心：下拉框VO")
public class OptionsVO {
  @ApiModelProperty("id")
  private String id;

  @ApiModelProperty("名称")
  private String name;

  public OptionsVO(Long id, String name) {
    this.id = id.toString();
    this.name = name;
  }

  public static OptionsVO of(Long id, String name) {
    return new OptionsVO(id, name);
  }

}
